<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //向上取整
        console.log(Math.ceil(1.99999))
        document.write(Math.ceil(1.1)+'<br>')
        //向下取整
        document.write(Math.floor(1.9999999999)+'<br>')
        //幂运算
        document.write(Math.pow(2,3)+'<br>')

        //随机数100-1000,N-M的随机数公式：(M-N+1)+N
        document.write(Math.floor(Math.random()*(1000-100+1))+100)         
    </script>
</body>
</html>